import request from "@/utils/request";

// 获取农户申请列表
export const getFarmerApplyList = (params) => {
  return request.get("/farmerApplication/list", { params });
};

// 获取农户申请详情
export const getFarmerApplyDetail = (id) => {
  return request.get(`/farmerApplication/${id}`);
};

// 审核农户申请
export const auditFarmerApply = (data) => {
  return request.put("/farmerApplication/audit", data);
};

// 农户申请
export const addFarmerApply = (data) => {
  return request.post("/farmerApplication", data);
};
